.PHONY: wire
wire:
	wire gitee.com/Luna-CY/Golang-Project-Template/entry/http/gateway/example/handler
	wire gitee.com/Luna-CY/Golang-Project-Template/cmd/worker
	wire gitee.com/Luna-CY/Golang-Project-Template/internal/configuration/loader

.PHONY: docs
docs:
	swag init --v3.1 --instanceName example --output ./internal/docs --generalInfo ./entry/http/gateway/example/doc.go
	rm internal/docs/example_swagger.yaml internal/docs/example_docs.go

.PHONY: http-example
http-example:
	go run -tags docs,debug ./cmd/server http example

.PHONY: generate
generate:
	go generate ./model

.PHONY: migrate-up
migrate-up:
	go run ./cmd/migrate up
